package com.wenxixuanwu.fruitstore.mapper;

import com.wenxixuanwu.fruitstore.entity.OrderListVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author :小凡凡
 * @version :1.0
 * @Project :fruitstore
 * @Date :2022/5/5
 */
@Mapper
public interface BackOrderMapper {

    /**
     * 查询所有订单信息
     * @return 返回订单列表
     */
    List<OrderListVO> findOrderAll();

    /**
     * 更新订单状态
     * @param oId 订单id
     * @return
     */
    Integer updateStateById(String oId);

    /**
     * 删除订单
     * @param oId 订单的id
     * @return
     */
    Integer orderDelete(String oId);
}
